package com.gzh.mybatis.dao;

import com.gzh.mybatis.pojo.GzhUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @package: com.gzh.mybatis
 * @Auther: Pf.Guo
 * @Date: Created in 2021/3/28 16:04
 */
public interface GzhUserDao {
    List<GzhUser> findAll();

    GzhUser findByUsername(@Param("username") String username);

    List<GzhUser> findByIds(Integer[] ids);

    boolean updatePwdById(@Param("pwd") String pwd, @Param("id") Integer id);

    GzhUser findUserInfoByUsername(@Param("username") String username);

    GzhUser findUserInfoAndWorksById(@Param("id") Integer id);
}
